package com.baby.mall.product.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 属性分组
 * 
 * @author qinglongzhai
 * @email qinglongzhai@gmail.com
 * @date 2021-03-15 10:47:09
 */
@Data
@TableName("pms_attr_group")
public class AttrGroupEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 分组id
	 */
	@TableId
	@ApiModelProperty("分组id")
	private Long attrGroupId;
	/**
	 * 组名
	 */
	@ApiModelProperty("组名")
	private String attrGroupName;
	/**
	 * 排序
	 */
	@ApiModelProperty("排序")
	private Integer sort;
	/**
	 * 描述
	 */
	@ApiModelProperty("描述")
	private String descript;
	/**
	 * 组图标
	 */
	@ApiModelProperty("组图标")
	private String icon;
	/**
	 * 所属分类id
	 */
	@ApiModelProperty("所属分类id")
	private Long catelogId;


	/**
	 * 完整路径
	 * */
	@TableField(exist = false)
	private Long[] catelogPath;

	@TableField(fill = FieldFill.INSERT)
	@ApiModelProperty("创建时间")
	private Date gmtCreate;

	@TableField(fill = FieldFill.INSERT_UPDATE)
	@ApiModelProperty("修改时间")
	private Date gmtModified;

	@TableLogic
	@ApiModelProperty("逻辑删除")
	private Integer deleted;

}
